﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace SerbinAV.MobileSales.Sales.Common
{
    public class SystemMetrics
    {
        [DllImport("coredll.dll", EntryPoint = ("GetSystemMetrics"))]
        public static extern int GetSystemMetrics(int nIndex);
        private const int SM_CXSCREEN = 0;
        private const int SM_CYSCREEN = 1;


        public static int GetHeight ()
        {
            return GetSystemMetrics(SM_CYSCREEN);
        }

        public static int GetWhidth()
        {
            return GetSystemMetrics(SM_CXSCREEN);
        }
    }
}
